Heuristics for type error discovery and recovery (revised revised)

نویسندگان

  • Jurriaan Hage
  • Bastiaan Heeren
چکیده

Type error messages that are reported for incorrect functional programs can be difficult to understand. The reason for this is that most type inference algorithms proceed in a mechanical, syntax-directed way, and are unaware of inference techniques used by experts to explain type inconsistencies. We formulate type inference as a constraint problem, and analyze the collected constraints to improve the error messages (and, as a result, programming efficiency). A special data structure, the type graph, is used to detect global properties of a program, and furthermore enables us to uniformly describe a large collection of heuristics which embed expert knowledge in explaining type errors. Some of these also suggest corrections to the programmer. Our work has been fully implemented and is used in practical situations, showing that it scales up well. We include a number of statistics from actual use of the compiler showing us the frequency with which heuristics are used, and the kind and number of suggested corrections.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Heuristics for type error discovery and recovery (revised)

Type error messages that are reported for incorrect functional programs can be difficult to understand. The reason for this is that most type inference algorithms proceed in a mechanical, syntax-directed way, and are unaware of inference techniques used by experts to explain type inconsistencies. We formulate type inference as a constraint problem, and analyze the collected constraints to impro...

متن کامل

Identification and evaluation of human error in operation of electrical installations of Tehran Province Electricity Distribution Company using SHERPA technique

Background: Industrial incidents are one of the major problems of today's societies. Studies in this field show that the main and most important cause of error occurrence is human factor. Therefore, the aim of this study was to identify and evaluate the risk of human error in the activities related to the operation of electrical installations of the Tehran Province Electricity Distribution Comp...

متن کامل

A Multi-level Capacitated Lot-sizing Problem with Safety Stock Deficit and Production Manners: A Revised Simulated Annealing

[1] Corresponding author e-mail: [email protected]   [1] Corresponding author e-mail: [email protected]   Lot-sizing problems (LSPs) belong to the class of production planning problems in which the availability quantities of the production plan are always considered as a decision variable. This paper aims at developing a new mathematical model for the multi-level ca...

متن کامل

ارزیابی دقت روش USDA-NRCS اصلاح‌شده در برآورد غیر‌مستقیم پارامترهای معادله نفوذ (مطالعه موردی آبیاری جویچه‌ای مزارع کشت و صنعت امیرکبیر)

Infiltration is the most crucial process affecting surface irrigation uniformity and efficiency as it is the mechanism that transfers and distributes water from the surface to the soil profile. As a direct method of infiltration measurement, the volume balance method requires time, accuracy and high costs. Moreover, before the land preparation and at the research phase the use of this method is...

متن کامل

بررسی خطاهای پزشکی در بیمارستان های دولتی شیراز: 1391

Background: Nowadays, Medical error as a major challenge has been attention of health authorities and community. The main purpose of this study was survey of medical errors in Shiraz public hospitals. Materials & Methods: This study was a survey which conducted as analytical in 2013. Study population was Shiraz public hospitals which 10 hospitals were examined. Standard checklist was used for ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006